package com.mall.page.feign;

import com.mall.common.util.RespResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.io.FileNotFoundException;
import java.io.UnsupportedEncodingException;

/**
 * @author Darren
 * @date 2022-08-26 15:03
 * Description：
 */
@FeignClient("mall-page-web")
@RequestMapping("/page")
public interface PageFeign {

    @GetMapping("/{spuId}")
    @ApiOperation(value = "商品详情静态页生成")
    RespResult generateHtml(@PathVariable("spuId") String spuId) throws FileNotFoundException, UnsupportedEncodingException;

}
